﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

using System.Web.Mvc;
using Gman.Entity.Entities;
using System.Collections.Generic;
using Gman.WebApp.ServiceControllers;

namespace Gman.WebApp.Models
{
    public class BajaActivoModel : BaseModel
    {
        public ValidationBase Validator { get; set; }
        public List<KeyValuePair<string, string>> ValidationList = new List<KeyValuePair<string, string>>();
        public List<KeyValuePair<string, bool>> PropertyVisibilityList = new List<KeyValuePair<string, bool>>();

        public Guid? ID { get; set; }
        public string Action { get; set; }
        public BajaActivoBE BajaActivo { get; private set; }
        public List<BajaActivoDetalleModel> BajaActivoDetalles { get; set; }
        public ToolBarModel ToolBar { get; set; }

        //public BienBE Bien { get; private set; }

        SedeBE sede = new SedeBE();

        public List<BajaActivoDetalleModel> toDelete { get; set; }

        public BajaActivoModel()
        {
            BajaActivo = new BajaActivoBE();
            BajaActivoDetalles = new List<BajaActivoDetalleModel>();

            toDelete = new List<BajaActivoDetalleModel>();
        }


        public BajaActivoModel(BajaActivoBE bajaActivo)
        {
            BajaActivo = bajaActivo;
            ID = Guid.NewGuid();

            sede.IDEmp = 1;
            BajaActivoDetalles = new List<BajaActivoDetalleModel>();

            toDelete = new List<BajaActivoDetalleModel>();
        }
    }
}
